<script setup>
import {ref} from 'vue';

// 社交链接
const bilibiliLink = ref('https://space.bilibili.com/293751618');
const giteeLink = ref('https://gitee.com/sevenYQK');
</script>

<template>
  <div class="author-info">
    <p>我还没想好写什么，到时候发投票吧。</p>

    <div class="social-links">
      <h3>联系方式</h3>
      <div class="links-container">
        <a :href="bilibiliLink" class="social-link bilibili" rel="noopener noreferrer" target="_blank">
          Bilibili
        </a>
        <a :href="giteeLink" class="social-link gitee" rel="noopener noreferrer" target="_blank">
          Gitee
        </a>
      </div>
    </div>
  </div>

  <div class="author-footer">
    <p>特别感谢
      <span class="special-thanks">
        阿太x、仓鼠烤鱼
      </span> 的帮助！</p>
  </div>

  <div class="social-links">
    <h3>要饭环节</h3>
    <div style="font-size: 1.1em">
      <p>如果你尚且有余力，请给作者来一杯雪王茉莉绿茶</p>
      <p>茉莉绿茶真好喝！茉莉绿茶真好喝！茉莉绿茶真好喝！</p>
      <img alt="" src="../assets/qingkong.png" style="width: 20rem">
    </div>
  </div>
</template>

<style scoped>
.author-header h1 {
  margin: 0;
  font-size: 2rem;
}

.author-header p {
  margin: 5px 0 0;
  opacity: 0.9;
}

.author-avatar img {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #f0f0f0;
}

.author-info {
  flex-grow: 1;
}

.author-info h2 {
  margin-top: 0;
  color: #333;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}

.social-links {
  margin-top: 20px;
  margin-bottom: 20px;
}

.social-links h3 {
  margin-bottom: 15px;
}

.links-container {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 15px;
  border-radius: 6px;
  color: white;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.social-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-link i {
  margin-right: 8px;
}

.bilibili {
  background-color: #fb7299;
}

.gitee {
  background-color: #c71d23;
}

.author-footer {
  padding: 15px 20px;
  background-color: #f9f9f9;
  text-align: center;
  border-top: 1px solid #eee;
}

.special-thanks {
  color: #a777e3;
  font-weight: bold;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .links-container {
    justify-content: center;
  }
}
</style>